using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using BONSAI.Common;
using BONSAI.Common.DTO;
using BONSAI.DAL;

namespace BONSAI.BLL
{
	public class ContactsBO
	{
		public ContactsDTO GetByID(string id)
		{
			return (new ContactsDAO()).GetByID(id);
		}

		public IList<ContactsDTO> GetAll()
		{
			return (new ContactsDAO()).GetAll();
		}

		public string Insert(ContactsDTO contacts)
		{
			return (new ContactsDAO()).Insert(contacts);
		}

		public void UpdateByID(ContactsDTO contacts)
		{
			(new ContactsDAO()).UpdateByID(contacts);
		}

		public void DeleteByID(string id)
		{
			(new ContactsDAO()).DeleteByID(id);
		}
	}
}

